package Test2;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        double a=sc.nextDouble();
        double b=sc.nextDouble();
        System.out.println(Math.floor(a)>Math.floor(b)?Math.floor(a):Math.floor(b));
        System.out.println(Math.round(a)>Math.round(b)?Math.round(a):Math.round(b));
    }
}
